<input type="hidden" name="rating" id="rating" value="<?php echo $main_product[0]->rating?>" />			
<input type="hidden" name="product_id" id="product_id" value="<?php echo $main_product[0]->id?>" />			
<input type="hidden" name="skuroot" id="skuroot" value="<?php echo $skuRoot?>" />			
				<!-- middle content -->
				<div class="tpadding30 bpadding20">
                                    <div id="side-menu" class="left">
                                     <div class="marime side-left-button-dimension">
                                            <a class="side-left-button" href="<?php echo site_url('ring_sizer');?>" target="_blank">
                                                <p><?php echo lang('get_ring_size')?></p>
                                            </a>
                                        </div>
                                        <div class="garantie side-left-button-dimension">
                                            <a class="side-left-button" href="<?php echo site_url('main/page/returns_view');?>" target="_blank">
                                                <p><?php echo lang('returns_label')?></p>
                                            </a>
                                        </div>
                                        <div class="servicii side-left-button-dimension">
                                            <a class="side-left-button" href="<?php echo site_url('main/page/projection_view');?>" target="_blank">
                                                <p><?php echo lang('projection_services')?></p>
                                            </a>
                                        </div>
                                        <div class="livrare side-left-button-dimension">
                                            <a class="side-left-button" href="<?php echo site_url('main/page/delivery_view');?>" target="_blank">
                                                <p><?php echo lang('delivery_label')?></p>
                                            </a>
                                        </div>
                                        <div class="garantia_noastra side-left-button-dimension">
                                            <a class="side-left-button" href="<?php echo site_url('main/page/guarantees_view');?>" target="_blank">
                                                <p><?php echo lang('garantiile_noastre')?></p>
                                            </a>
                                        </div>
                                        <div class="live_chat side-left-button-dimension">
                                            <a class="side-left-button" href="javascript:void(0)">
                                                <p>Confuz? <br/>Live Chat</p>
                                            </a>
                                        </div>
                                        <div class="pachet bmargin17" id="showing-box">
                                            <div class="head-item"><?php echo lang('showing_box')?></div>
                                        </div>
                                        <div class="diemond bmargin17">
                                        	<a href="<?php echo site_url('main/page/diamond_education_view');?>" target="_blank">
	                                            <div class="head-item"><?php echo lang('diamond_education_text');?></div>
	                                            <ul class="education">
	                                                <li>
	                                                    <?php echo lang('the_four_c_text');?>
	                                                </li>
	                                                <li>
	                                                    <?php echo lang('certifications_text');?>
	                                                </li>
	                                                <li>
	                                                    <?php echo lang('diamond_shapes_text')?>
	                                                </li>
	                                                <li>
	                                                    <?php echo lang('diamond_sizes_text')?>
	                                                </li>
	                                            </ul>
	                                         </a>
                                        </div>
                                        <div class="metal bmargin17">
                                        	<a href="<?php echo site_url('main/page/metal_education_view');?>" target="_blank">
	                                            <div class="head-item"><?php echo lang('metal_education_text');?></div>
	                                            <ul class="education">
	                                                <li>
	                                                    <?php echo lang('platinum_text');?>
	                                                </li>
	                                                <li>
	                                                    <?php echo lang('gold_text');?>
	                                                </li>
	                                                <li>
	                                                    <?php echo lang('palladium_text');?>
	                                                </li>
	                                            </ul>
                                            </a>
                                       </div>
                                    </div>
                                       </div>
                                    <div id="bijuteria" class="left">
                                        <div id="breadcrumbs">
                                            <div class="brown">
                                            	<a href="<?php echo site_url('main/')?>"><?php echo lang('home')?></a>
                                            	<?php 
													if (!empty($breadcrumbs)){
														foreach ($breadcrumbs as $key=>$breadcrumb){?>
															<span class="breadcrumb-separator">></span> <a href="<?php echo site_url('product_list/0/' . $key . '-' .  string_to_url($breadcrumb))?>"><?php echo $breadcrumb?></a>
														<?php }
													}
                                            	?>
                                            </div>
                                        </div>
                                        <div class="recently-viewed rounded-corners light-brown-border">
                                            <div class="head rposition"> <h4><?php echo $main_product[0]->name;?></h4></div>
                                            <div class="produs-details light-brown-border-bottom">
                                                <div class="left">
                                                    <div class="produs-image">
                                                        <div class="image-container left rmargin8">
                                                        	<?php 
                                                        	if ($main_product[0]->flash_file_1 == ''){
                                                        		$main_product[0]->flash_file_1 = $main_product[0]->flash_file_1;
                                                        	}
                                                        	
                                                        	if (substr($main_product[0]->flash_file_1,-4,1) != '.' && $main_product[0]->flash_file_1 != ''){
                                                        		$main_product[0]->flash_file_1 .= '.swf';
                                                        	}
                                                        	?>
	                                                        <input type="hidden" name="flash_url" id="flash_url" value="<?php echo ASSETS_URL . 'catalog/flash/' . $main_product[0]->flash_file_1 ?>" />
	                                                        <?php if ($main_product[0]->flash_file_1 != '' ){?>
	                                                        <object width="250" height="250" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
																codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
															
																<param value="transparent" name="wmode"> 
																<param value="<?php echo ASSETS_URL?>catalog/flash/<?php echo $main_product[0]->flash_file_1?>" name="movie"> 
																<param value="high" name="quality"> 
																<param value="myVar=<?php echo ASSETS_URL?>catalog/flash" name="FlashVars"> 
															
																<embed width="250" height="250" type="application/x-shockwave-flash" 
																flashvars="myVar=http://media.purelydiamonds.co.uk/media/flash" 
																pluginspage="http://www.macromedia.com/go/getflashplayer" 
																quality="high" src="<?php echo ASSETS_URL?>catalog/flash/<?php echo $main_product[0]->flash_file_1?>" 
																wmode="transparent">
															</object>
															<noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="270" height="270">
														            <param name="movie" value=" " />
														            <param name="quality" value="high" />
																<param name="FlashVars" value="myVar=<?php echo ASSETS_URL?>catalog/flash" />  
														            <embed src="<?php echo ASSETS_URL?>catalog/flash/<?php echo $main_product[0]->flash_file_1?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="270" height="270"></embed>
														          </object></noscript>
														     <?php } else {?>
														     	<img src="<?php echo IMAGES_URL?>no_flash.jpg" />
														     <?php }?>
                                                        </div>
                                                        <div class="image-container left">
                                                           <img src="<?php echo NORMAL_IMAGE_URL . $main_product[0]->url?>" />
                                                            <a class="zoom" href="<?php echo (isset($large_images[0]) && (file_exists(LARGE_IMAGE_PATH . $large_images[0]->url)) ? LARGE_IMAGE_URL . $large_images[0]->url : NORMAL_IMAGE_URL . $main_product[0]->url) ?>" rel="shadowbox[main]"></a>
                                                        </div>
                                                        <div class="clear"></div>
                                                    </div>
                                                    
                                                    <div id="all-images">
                                                     	<?php 
                                                     	if (!empty($images)){
                                                     		$count = 0;
                                                     		foreach ($images as $idx=>$row){
                                                     			$count++;
                                                     		?>
                                                     			<a href="<?php echo (isset($large_images[$idx]) && (file_exists(LARGE_IMAGE_PATH . $large_images[$idx]->url)) ? LARGE_IMAGE_URL . $large_images[$idx]->url : NORMAL_IMAGE_URL . $row->url) ?>" rel="shadowbox[gallery]">
                                                     		<?php
                                                     			echo resize_image($row->url,NORMAL_IMAGE_PATH,NORMAL_IMAGE_URL,'single_view_small_image_width','single_view_small_image_height',$row->url,'detailssmallthumb');
                                                     			if ($count == 9){
                                                     				echo '<div class="clear"></div>';
                                                     			}
                                                     		?>
                                                     			</a>
                                                     		<?php 
                                                     		} 
                                                     	}?>
                                                    </div>
                                                    
                                                    <div class="clear"></div>
                                                    
                                                    <div class="produs-search">
                                                    	<input type="hidden" name="current_url" id="current_url" value="<?php echo $current_url;?>" />
                                                        <p><?php echo lang('customize_order_text')?></p>
                                                        <?php if (count($colors)){?>
	                                                        <select name="color" id="color_search" class="left">
	                                                        	<?php 
	                                                        	foreach ($colors as $key=>$value){ ?>
	                                                        		<?php if (strlen($value->colour)){?>
	                                                        		<option value="<?php echo $value->colour?>" <?php echo ((isset($filter['color']) && $filter['color'] == $value->colour) ? 'selected="selected"' : '')?>><?php echo $value->colour . ' - ' . lang(strtolower($value->colour) . '_color')?></option>
	                                                        	<?php }
																}?>
	                                                        </select>
                                                        <?php }?>
                                                        <?php if (count($clarities)){?>
	                                                         <select name="clarity" id="clarity" class="left">
	                                                        	<?php foreach ($clarities as $key=>$value){ ?>
	                                                        		<option value="<?php echo $value->clarity?>" <?php echo ((isset($filter['clarity']) && $filter['clarity'] == $value->clarity) ? 'selected="selected"' : '')?>><?php echo $value->clarity?></option>
	                                                        	<?php }?>
	                                                        </select>
                                                        <?php }?>
                                                        <div class="clear"></div>
                                                    </div>
                                                </div>
                                                <div id="main-prod-description" class="produs-desc left lpadding10">
                                                   <?php if (count($metals)){?>
	                                                   <div class="left" style="width:200px;">
	                                                   <span class="bold" style="margin-top:5px;margin-right:2px;display:inline-block;"><?php echo lang('metal_text_detail');?></span>
	                                                   <select name="metal" id="metal" class="left">
	                                                       <?php foreach ($metals as $key=>$value){ ?>
	                                                       		<?php if (strlen($value->metal)){?>
	                                                        	<option value="<?php echo $value->metal?>" <?php echo (($main_product[0]->metal == $value->metal) ? 'selected="selected"' : '')?>><?php echo $value->metal?></option>
	                                                        <?php }
	                                                       	}?>
	                                                   </select>  
	                                                   </div> 
                                                   <?php }?>
                                                   <div class="clear"></div>                                               
                                                    <div class="info">
                                                    	<?php if (strlen($main_product[0]->setting)){?>
                                                       		<p><span class="bold"><?php echo lang('detail_setting_text')?>:</span> <?php echo $main_product[0]->setting?></p>
                                                        <?php }
                                                        if (strlen($main_product[0]->setting)){?>
                                                       		<p><span class="bold"><?php echo lang('detail_shape_text')?>:</span> <?php echo $main_product[0]->shape?></p>
                                                         <?php }
                                                        if (strlen($main_product[0]->setting)){?>
                                                        	<p><span class="bold"><?php echo lang('diamond_cut');?>:</span><?php echo lang('diamond_cut_very_good')?></p>
                                                         <?php }
                                                        if (strlen($main_product[0]->setting)){?>
                                                        	<p><span class="bold"><?php echo lang('delivery_label');?>:</span><?php echo lang('estimated_delivery_time')?></p>
                                                   		<?php }?>
                                                    </div>
                                                    
                                                    <?php if (isset($previousProd)){?>
	                                                    <a href="<?php echo get_product_url($previousProd->name,$previousProd->id)?>" class="pre_button left rmargin-ss" >
	                                                        <p><?php echo lang('prev');?></p>
	                                                    </a>
	                                                <?php } else { ?>
	                                                	 <a href="#" disabled="true" onclick="return false;" class="pre_button left rmargin-ss" >
	                                                        <p><?php echo lang('prev');?></p>
	                                                    </a>
	                                                <?php }?>
	                                                
	                                                <?php if (isset($nextProd)){?>
                                                    <a href="<?php echo get_product_url($nextProd->name,$nextProd->id)?>" class="next_button left" >
                                                        <p><?php echo lang('next');?></p>
                                                    </a>
                                                      <?php } else { ?>
	                                                	 <a href="#" disabled="true" onclick="return false;" class="next_button left" >
	                                                        <p><?php echo lang('next');?></p>
	                                                    </a>
	                                                <?php }?>
	                                                
                                                    <div class="clear"></div>
                                                    <a href="<?php echo $backString?>" class="pre_button left rmargin-ss bmargin0" >
                                                        <p><?php echo lang('back');?></p>
                                                    </a>
                                                    <a href="javascript:print_product()" class="print left bmargin0" >
                                                        <p><?php echo lang('print');?></p>
                                                    </a>
                                                    <div class="clear"></div>
                                                    <div class="evaluate">
                                                        <div id="star"></div>
                                                    </div>
                                                    <a href="<?php echo site_url('questions/show_questions')?>" id="ask_the_jeweler_btn" class="jeweler_qustion"> 
                                                        <img src="<?php echo ASSETS_URL?>images/icons/button/question_mark.png"> 
                                                            <?php echo lang('ask_the_jeweler')?>
                                                    </a>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                            <div class="add_to_cart light-brown-border-bottom">
                                                <div id="title">
                                                    <table cellpadding="0" cellspaceing="0">
                                                        <tr>
                                                            <td style="width: 141px;"><?php echo lang('item_no_details');?></td>
                                                             <?php if ($main_product[0]->attribute_set == 'Diamond Rings'){?>
                                                           		<td style="width: 147px;"><?php echo lang('carat_weight_details');?></td>
                                                           	<?php } else {?>
                                                           		<td style="width: 147px;"><?php echo lang('width_details');?></td>
                                                            <?php }?>
                                                            <td style="width: 227px;"><?php echo lang('details_options_purchase');?></td>
                                                            <td style="width: 121px;"><?php echo lang('price_inc_vat_details');?></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div id="accordion">
                                                <?php foreach ($child_products as $child_product){?>
                                                <div class="product_details">
                                                    <table cellpadding="0" cellspacing="0">
	                                                        <tr>
	                                                            <td style="width: 29px;">
	                                                                <div class="arrow_big_right"></div>
	                                                            </td>
	                                                            <td style="width: 140px;"><?php echo $child_product->sku?></td>
	                                                            <?php if ($main_product[0]->attribute_set == 'Diamond Rings'){?>
	                                                           		<td style="width: 140px;"><?php echo number_format(round($child_product->carat_weight,2),2)?>ct</td>
	                                                           	<?php } else {?>
	                                                           		<td style="width: 140px;"><?php echo $child_product->search_width?></td>
	                                                            <?php }?>
	                                                            <td style="width: 217px;"><?php echo lang('more_info_purchase_txt');?></td>
	                                                            <td style="width: 141px;text-align:center;">
	                                                            	<?php 
																		if ($child_product->promotion_value){
																			echo '<div class="old-price">' . lang('was_text') . ': ' . $exchange->transformPrice($child_product->special_price,$sel_currency,true,$child_product->id,false,false) . ' ' . $sel_currency . "</div>";
																			echo '<div>' . lang('now_text') . ': ';
																		} else {
																			echo '<div>';
																		}
	                                                            		echo $exchange->transformPrice($child_product->special_price,$sel_currency,true,$child_product->id,false,false,$child_product->promotion_value) . ' ' . $sel_currency;
	                                                            		echo '</div>';
	                                                            	?>
	                                                            	
	                                                            </td>
	                                                            <td style="width: 93px;">
	                                                                <div class="bt_add_to_cart" id="bt_add_to_cart_<?php echo $child_product->id?>" onClick="submit_form(<?php echo $child_product->id?>, 0)">
	                                                                    <?php echo lang('add_to_cart');?>
	                                                                </div>
	                                                            </td>
	                                                        </tr>
	                                                    </table>
                                                   <div class="to_order">                                                        
                                                   		<div class="left description">
                                                            <p><b><?php echo lang('approx_diamond_size');?>: </b><?php echo $child_product->diamond_size_text?></p>
                                                            <p>
                                                            	<b><?php echo lang('compare_rrp')?>:</b>&nbsp;<span class="old-price"><?php echo $exchange->transformPrice($child_product->price,$sel_currency,true,$child_product->id) . ' ' . $sel_currency;?></span>
                                                            	<span class="you-save"><?php echo lang('you_save_text')?>:&nbsp;<?php echo $exchange->transformPrice($child_product->price - ($child_product->special_price - $child_product->special_price*$child_product->promotion_value/100),$sel_currency,true,$child_product->id) . ' ' . $sel_currency;?></span>
                                                            </p>
                                                            <p><b><?php echo lang('ring_width')?>: </b><?php echo $child_product->ring_band_width?></p>
                                                            <p class="width">
                                                                <?php echo $child_product->description;?>
                                                            </p>
                                                            <div class="certification">
                                                                <b><?php echo lang('certification_documents')?>:</b>
                                                                <img src="<?php echo IMAGES_URL?>voluation.jpg" />
                                                                <?php if ($child_product->certified){?>
                                                                	<img src="<?php echo IMAGES_URL?>certified.jpg" />
                                                                <?php }?>
                                                            </div>
                                                            <a href="javascript:submit_form(<?php echo $child_product->id?>, 0)" class="left comanda rmargin-s styple_pt_comanda"><?php echo lang('add_to_cart');?></a>
                                                            <a href="javascript:submit_form(<?php echo $child_product->id?>, 1)" class="left comanda_rapid styple_pt_comanda"><?php echo lang('fast_comand');?></a>
                                                            <div class="clear"></div>
                                                        </div>
                                                        <div class="left options">
                                                        	<form class="option_form" method="GET" name="options_<?php echo $child_product->id;?>" id="options_<?php echo $child_product->id;?>" action="<?php echo site_url('cart/addToCart/' . $child_product->id)?>">
																<input type="hidden" value="" name="fast_comand" id="fast_comand" /><br/>
	                                                            <p><b><?php echo lang('ring_size_options')?></b></p>
	                                                            <div class="tmargin-s">
	                                                                <label><strong><?php echo lang('engraving_inside_ring')?>&nbsp;+<?php echo $exchange->transformPrice($this->config->item('engraving_price_euro'),$sel_currency,false,0)?>&nbsp;<?php echo $sel_currency?></strong></label><br/>
	                                                                <input type="text" value="" name="engraving_text" />
	                                                                <span><?php echo lang('max_number_char_engraving')?>: <b><?php echo $this->config->item('max_number_char_engraving')?></b></span>
	                                                            </div>
	                                                            <?php 
	                                                            $sizes_f = $prodObj->getRingSizesByProductId($child_product->id,$field,"F")->result();
	                                                            $sizes_m = $prodObj->getRingSizesByProductId($child_product->id,$field,"M")->result();
	                                                            $sizes = array();
	                                                            if (count($sizes_f)){
	                                                            	$sizes = $sizes_f;
	                                                            }
	                                                            
	                                                            if (empty($sizes) && !empty($sizes_m)){
	                                                            	$sizes = $sizes_m;
	                                                            } else {
	                                                            	$sizes = array();
	                                                            }
	        													if (count($sizes) > 0){
	                                                            ?>
	                                                            <div class="tmargin-s">
	                                                                <label><?php echo lang('chose_ring_size')?><span style="color:#FF0000">*</span></label><br/>
	                                                                <select id="ring_size_<?php echo $child_product->id;?>" name="ring_size[]" class="required">
	                                                                	<option value=""></option>
	                                                                	<?php foreach ($sizes as $row){?>
	                                                                    	<option value="<?php echo $row->size_field?>"><?php echo $row->size_field?></option>
	                                                                	<?php }?>                                                            
	                                                                </select>
	                                                            </div>
	                                                            <?php } else {
		                                                            if (count($sizes_f) > 0){?>
		                                                            <div class="tmargin-s">
		                                                                <label><?php echo lang('chose_ring_size_female')?><span style="color:#FF0000">*</span></label><br/>
		                                                                <select id="ring_size_f_<?php echo $child_product->id;?>" name="ring_size[]" class="required">
		                                                                	<option value=""></option>
		                                                                	<?php foreach ($sizes_f as $row){?>
		                                                                    	<option value="<?php echo $row->size_field?>"><?php echo $row->size_field?></option>
		                                                                	<?php }?>                                                            
		                                                                </select>
		                                                            </div>
		                                                            <?php }
		                                                            
		                                                            if (count($sizes_m) > 0){?>
		                                                            <div class="tmargin-s">
		                                                                <label><?php echo lang('chose_ring_size_male')?><span style="color:#FF0000">*</span></label><br/>
		                                                                <select id="ring_size_m_<?php echo $child_product->id;?>" name="ring_size[]" class="required">
		                                                                	<option value=""></option>
		                                                                	<?php foreach ($sizes_m as $row){?>
		                                                                    	<option value="<?php echo $row->size_field?>"><?php echo $row->size_field?></option>
		                                                                	<?php }?>                                                            
		                                                                </select>
		                                                            </div>
		                                                            <?php }
	                                                            }?>
	                                                            <div class="tmargin-s">
	                                                                <label><?php echo lang('special_requirements_text')?></label><br/>
	                                                                <textarea name="special_requirements" col="10" rows="5"></textarea>
	                                                            </div>
                                                            </form>
                                                        </div>
                                                        <div class="clear"></div>
                                                    </div>
                                                    <div class="clear"></div>
                                                </div>
                                                <div class="clear"></div>
                                                <?php }?>
                                              </div>                                  
                                            </div>
                                            <div class="information">
                                                <div class="left info_img"></div>
                                                <div class="left">
                                                    <?php echo lang('details_info_text',true)?>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                        </div>
                                        
                                    </div>
                                    <div class="clear"></div>
<div id="print-div">
	<div style="width: 100%; text-align:center">
		<img src="<?php echo IMAGES_URL?>logo.png" />
	</div>
	<div id="breadcrumbs" style="margin-top:15px;">
                                            <div class="brown">
                                            	<?php echo lang('home');
								if (!empty($breadcrumbs)){
									foreach ($breadcrumbs as $key=>$breadcrumb){?>
										<span class="breadcrumb-separator">></span> <?php echo $breadcrumb?>
									<?php }
													}
                                            	?>
                                            </div>
                                        </div>
                                        <div class="recently-viewed rounded-corners light-brown-border">
                                            <div class="head rposition"> <h4><?php echo $main_product[0]->name;?></h4></div>
                                            <div class="">
                                            	<table style="width: 100%">
                                            		<tr><td style="width: 50%">
                                                     <img src="<?php echo NORMAL_IMAGE_URL . $main_product[0]->url?>" style="width: 250px;"/>
                                                                                                         
                                                    <div>
                                                     	<?php if (!empty($images)){
                                                     		$count = 0;
                                                     		foreach ($images as $row){
                                                     			$count++;
                                                     			echo resize_image($row->url,NORMAL_IMAGE_PATH,NORMAL_IMAGE_URL,'single_view_small_image_width','single_view_small_image_height',$row->url,'detailssmallthumb');
                                                     			if ($count == 9){
                                                     				echo '<div class="clear"></div>';
                                                     			}
                                                     		
                                                     		} 
                                                     	}?>
                                                    </div>
                                                    
                                                    <div >
                                                        <p><?php echo lang('customize_order_text')?></p>
                                                        <?php if (count($colors)){?>
                                                        <select name="color" id="color_search" class="left">
                                                        	<?php 
                                                        	foreach ($colors as $key=>$value){ ?>
                                                        		<?php if (strlen($value->colour)){?>
                                                        		<option value="<?php echo $value->colour?>" <?php echo ((isset($filter['color']) && $filter['color'] == $value->colour) ? 'selected="selected"' : '')?>><?php echo $value->colour . ' - ' . lang(strtolower($value->colour) . '_color')?></option>
                                                        	<?php }
											}?>
	                                                        </select>
                                                        <?php }?>
                                                        <?php if (count($clarities)){?>
                                                         <select name="clarity" id="clarity" class="left">
                                                        	<?php foreach ($clarities as $key=>$value){ ?>
                                                        		<option value="<?php echo $value->clarity?>" <?php echo ((isset($filter['clarity']) && $filter['clarity'] == $value->clarity) ? 'selected="selected"' : '')?>><?php echo $value->clarity?></option>
                                                        	<?php }?>
	                                                        </select>
                                                        <?php }?>
                                                        <div class="clear"></div>
                                                    </div>
                                                </td>
                                                <td style="width: 50%">
                                                   <?php if (count($metals)){?>
                                                   
                                                   <span class="bold" style="margin-top:5px;margin-right:2px;display:inline-block;"><?php echo lang('metal_text_detail');?></span>
                                                   <select name="metal" id="metal" style="display:inline-block;">
                                                       <?php foreach ($metals as $key=>$value){ ?>
                                                       		<?php if (strlen($value->metal)){?>
                                                        	<option value="<?php echo $value->metal?>" <?php echo (($main_product[0]->metal == $value->metal) ? 'selected="selected"' : '')?>><?php echo $value->metal?></option>
                                                        <?php }
                                                       	}?>
	                                                   </select>  
	                                              
                                                   <?php }?>                                                    	
                                                        <p><span class="bold"><?php echo lang('detail_setting_text')?>:</span> <?php echo $main_product[0]->setting?></p>
                                                        <p><span class="bold"><?php echo lang('detail_shape_text')?>:</span> <?php echo $main_product[0]->shape?></p>
                                                        <p><span class="bold"><?php echo lang('diamond_cut');?>:</span><?php echo lang('diamond_cut_very_good')?></p>
                                                        <p><span class="bold"><?php echo lang('delivery_label');?>:</span><?php echo lang('estimated_delivery_time')?></p>
                                               
                                                </td></tr></table>
                                                <div class="clear"></div>
                                            </div>
                                            <div class="add_to_cart light-brown-border-bottom">
                                                <div id="title">
                                                    <table cellpadding="0" cellspaceing="0">
                                                        <tr>
                                                            <td style="width: 240px;"><?php echo lang('item_no_details');?></td>
                                                             <?php if ($main_product[0]->attribute_set == 'Diamond Rings'){?>
                                                           		<td style="width: 150px;"><?php echo lang('carat_weight_details');?></td>
                                                           	<?php } else {?>
                                                           		<td style="width: 150px;"><?php echo lang('width_details');?></td>
                                                            <?php }?>
                                                            <td style="width: 121px;"><?php echo lang('price_inc_vat_details');?></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div id="accordion">
                                                <?php foreach ($child_products as $child_product){?>
                                                <div>
                                                    <table cellpadding="0" cellspacing="0">
	                                                        <tr>
	                                                            <td style="width: 29px;">
                                                                <div class="arrow_big_right"></div>
                                                            </td>
                                                            <td style="width: 240px;"><?php echo $child_product->sku?></td>
                                                            <?php if ($main_product[0]->attribute_set == 'Diamond Rings'){?>
                                                           		<td style="width: 150px;"><?php echo number_format(round($child_product->carat_weight,2),2)?>ct</td>
                                                           	<?php } else {?>
                                                           		<td style="width: 150px;"><?php echo $child_product->search_width?></td>
                                                            <?php }?>
                                                             <td style="width: 141px;">
	                                                            	<?php 
																		if ($child_product->promotion_value){
																			echo '<div class="old-price">' . lang('was_text') . ': ' . $exchange->transformPrice($child_product->special_price,$sel_currency,true,$child_product->id,false,false) . ' ' . $sel_currency . "</div>";
																			echo '<div>' . lang('now_text') . ': ';
																		} else {
																			echo '<div>';
																		}
	                                                            		echo $exchange->transformPrice($child_product->special_price,$sel_currency,true,$child_product->id,false,false,$child_product->promotion_value) . ' ' . $sel_currency;
	                                                            		echo '</div>';
	                                                            	?>
	                                                            	
	                                                            </td>
                                                          </tr>
	                                                    </table>
                                                    <div class="clear"></div>
                                                </div>
                                                <div class="clear"></div>
                                                <?php }?>
                                              </div>                                  
                                            </div>
                                        </div>
                                        
                                    </div>

<div id="showing-box-modal">
	<?php echo lang('showing_box_content',true)?>
</div>